#!/usr/bin/perl

`/usr/local/bin/mysql -H --user=webuser --password=boo -e "show status" > /var/lib/apache/htdocs/mysqlmonitor/status.html`;

`chown nobody.nogroup /var/lib/apache/htdocs/mysqlmonitor/status.html`;

`chmod 644 /var/lib/apache/htdocs/mysqlmonitor/status.html`;

`/usr/local/bin/mysql -H --user=webuser --password=boo -e "show processlist" > /var/lib/apache/htdocs/mysqlmonitor/process.html`;

`chown nobody.nogroup /var/lib/apache/htdocs/mysqlmonitor/process.html`;

`chmod 644 /var/lib/apache/htdocs/mysqlmonitor/process.html`;

exit;
